package com.test.gpa.repostitory;

import com.test.gpa.domain.User;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

public interface UserSqlRepository extends JpaRepository<User,Long> {

    @Query(value = "select * from sys_user where `user_name` = ?   limit 1",nativeQuery = true)
    User queryByName(String name);
}
